/**
* 作者: lichuan
* 日期: 2025-07-30 18:17:47
* 备注: 联盟总动员里程奖励
*/
package com.motu.monstercity.server.game.commondata.union;

import io.vertx.core.json.JsonObject;

public class UnionactionRewardModel {
	protected int id; // id
	protected int unionScore; // 联盟总积分要求
	protected String commonReward; // 联盟积分达标后，每个人都可以领取的公共奖励
	protected int perScore; // 在联盟总积分达到要求的基础上，个人分数所需达成的要求
	protected String extraReward; // 个人分数达标后，额外获取的奖励

	public UnionactionRewardModel() {
	}

	public UnionactionRewardModel(JsonObject obj) {
		id = obj.containsKey("id") ? obj.getInteger("id") : 0;
		unionScore = obj.containsKey("union_score") ? obj.getInteger("union_score") : 0;
		commonReward = obj.containsKey("common_reward") ? obj.getString("common_reward") : "";
		perScore = obj.containsKey("per_score") ? obj.getInteger("per_score") : 0;
		extraReward = obj.containsKey("extra_reward") ? obj.getString("extra_reward") : "";
	}

	public int getId() {
		return id;
	}

	public int getUnionScore() {
		return unionScore;
	}

	public String getCommonReward() {
		return commonReward;
	}

	public int getPerScore() {
		return perScore;
	}

	public String getExtraReward() {
		return extraReward;
	}

}
